package com.xiaohao.ctdemo.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2018-08-31 16:21
 * @package com.xiaohao.ctdemo.bean
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity

@ToString
public class Medicine implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
    private String name;
}
